package com.mtrhz.xxx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mtrhz.esb.inteface.sso.TokenService;

/**
 * 测试代码
 * @author 40872
 *
 */
@RestController
public class BasicConsumerController {
	
    //@Reference(version = "1.0.0")//放弃注解配置，原因：无法细化到方法级别
	@Autowired
    private TokenService tokenService;
    
    @RequestMapping("/getToekn")
	public String getToekn() {
		return tokenService.getToken("grant_type", "scope", "client_id", "client_secret");
	}

}